<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="<c:url value='/js/jquery-1.11.1.min.js'/>"></script>
<script src="js/bootstrap.min.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>衣服添加</title>
<script type="text/javascript">
function upload(){
	window.open("<c:url value='ClothingAction?oper=upload'/>","图片上传",'width=600,height=100,top=80,left=80,toolbar=no, menubar=no, scrollbars=no, resizable=no');
}

</script>
</head>
<body>

<nav class="navbar navbar-default" role="navigation">
   <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" 
         data-target="#example-navbar-collapse">
         <span class="sr-only">切换导航</span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="<c:url value='/AdminInfoAction?oper=back'/>">欢迎您：${adminInfologin.adminName }</a>
   </div>
   <div class="collapse navbar-collapse" id="example-navbar-collapse">
      <ul class="nav navbar-nav">
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">用户管理<b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
               <li><a href="<c:url value='/AdminInfoAction?oper=userlist'/>">用户列表</a></li>
            </ul>
         </li>
         <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">订单管理<b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
               <li><a href="<c:url value='/AdminInfoAction?oper=ordermanage'/>">订单列表</a></li>
            </ul>
         </li>
         <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">衣服管理<b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
               <li><a href="<c:url value='/ClothingAction?oper=clothinglist'/>">查看所有衣服</a></li>
               <li><a href="<c:url value='/ClothingAction?oper=clothingsave'/>">上架衣服</a></li>
            </ul>
         </li>
          <li><a href="<c:url value='/AdminInfoAction?oper=loginout'/>">退出登录</a></li>
      </ul>
   </div>
</nav>
		<form action="<c:url value='ClothingAction?oper=save'/>" method="post">
			<span><%=request.getAttribute("msg") == null ? "" : request
					.getAttribute("msg").toString()%>
			</span> <br />
			<input type="hidden" name="imgPath" id="imgPath">
			<img id="photo" name="imgPath" src="<c:url value='/upload/1.jpg'/>" width="270" height="420">
			 <input type="button" onclick="upload()" value="上传图片"/>
			<br/>
			名称：<input type="text" name="clothing_name" placeholder="请输入名称">￥
			<br/>
			定价：<input type="text" name="price" placeholder="请输入定价">￥
			<br/>
			售价：<input type="text" name="sale_price" placeholder="请输入售价">￥
			<br/>
			尺寸：<input type="text" name="size" placeholder="请输入尺寸">
			<br/>
			
			类别：<select name="kindId">
			<option value="#" selected="selected">==请选择类别==</option>
			<c:forEach items="${kindlist }" var="kind">
			<option value="${kind.id }">${kind.season }</option>
			</c:forEach>
			</select>
			
			<br/>
			颜色：<input type="text" name="color" placeholder="请输入颜色">
			<br/>
			描述：<textarea name="summary" cols="45px" rows="15px" style="width:500px; height:200px;font-size:18px;"></textarea>
			<br/>
			
				<input type="submit" value="添加">
		</form>
s</body>
</html>